package framework.utils;

import framework.controller.*;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.concurrent.RunnableFuture;

/**
 * @version 1.0
 * @author Michel Jansma
 * Class for writing data through console
 */
public class InputReader implements Runnable {
	
	public InputReader() {};
	
	public void run() {
		while(true){
			try {
				BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));
			 	String command = bufferRead.readLine();
			 	System.err.println(command);
			 	ServerController.OUTPUT_WRITER.println(command);
			} catch(Exception e) {};
		}
	};
	
}
